package com.lanchetech.dao;
import java.util.List;

import com.lanchetech.bean.request.PageReq;
import com.lanchetech.bean.vo.HomeworkVO;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.Homework;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface HomeworkMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Homework record);

    int insertSelective(Homework record);

    Homework selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Homework record);

    int updateByPrimaryKey(Homework record);

    Homework findOneByUserIdAndCourseId(@Param("userId")Long userId,@Param("courseId")Long courseId);

    List<HomeworkVO> findAllPage(PageReq req);

}